{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': False, 'morning': False, 'evening': False}\n",
      "{'code': 0, 'data': {'tokenInfo': {'access_token': '1f8246f2f6344e3b8da28d0f4ca1d459', 'expires_in': 2592000}, 'userDetail': {'userInfo': {'id': 5527244, 'yhm': '15399900725', 'yhlb': 3, 'gljb': -1, 'yhtx': '', 'isvip': 1}, 'schoolInfo': {'dwid': '430122020002', 'dwmc': '望城区第二中学', 'dwdz': '湖南省长沙市望城区桥驿镇', 'dwwz': '', 'dwpage': 'https://pages.wufangedu.com/schoolpage/page/43/4301/430122/430122020002.html', 'dwphoto': '', 'onecard': 1, 'consAddress': 0, 'qymc': '长沙市望城区'}, 'classInfo': [], 'teacherInfo': {'id': 175035, 'jsxm': '杨凡', 'rjxk': '', 'rjbj': '', 'srzw': '任课教师', 'dhhm': '15399900725', 'cardno': ''}}, 'type': 1}, 'message': 'SUCCESS', 'point': 0}\n"
     ]
    }
   ],
   "source": [
    "import sys\n",
    "import os\n",
    "from datetime import datetime as dt\n",
    "from MyData import MyData\n",
    "username = \"13887788707\"\n",
    "username = \"15399900725\"\n",
    "\n",
    "# 新建打卡类\n",
    "dk = MyData(username)\n",
    "\n",
    "# 检查是否有存档\n",
    "if os.path.exists(username):\n",
    "    dk.read_saved_info(username)\n",
    "\n",
    "# 检查是否已打卡\n",
    "has_recorded = dk.req_has_recorded()\n",
    "print(has_recorded)\n",
    "sub = dk.req_subUser()\n",
    "print(sub)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "interpreter": {
   "hash": "ac59ebe37160ed0dfa835113d9b8498d9f09ceb179beaac4002f036b9467c963"
  },
  "kernelspec": {
   "display_name": "Python 3.9.5 64-bit",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.9"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
